﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using Taoyl.CodeTraceBLL;
using Taoyl.CodeTraceModels;

namespace Taoyl.CodeTracePro
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SqlSugarManger sqlSugarManger = new SqlSugarManger();
            sqlSugarManger.SetConnectionString(ConfigurationManager.ConnectionStrings["ConnStr"].ToString());

            //创建数据表
            sqlSugarManger.CreateTable<CodeRecord>();
            sqlSugarManger.CreateTable<HourProduction>();

            Application.Run(new FrmMain());
        }
    }
}
